split array javascript by index

welcome to shbcf.ru